import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: '/paper',
  name: 'paper',
  component: DEFAULT_LAYOUT,
  meta: {
    title: '问卷管理',
    requiresAuth: true,
    icon: 'icon-list',
    order: 2,
  },
  children: [
    {
      path: 'list', // The midline path complies with SEO specifications
      name: 'paper.list',
      component: () => import('@/views/paper/index.vue'),
      meta: {
        title: '问卷',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'create', // The midline path complies with SEO specifications
      name: 'paper.create',
      component: () => import('@/views/paper/create.vue'),
      meta: {
        title: '创建问卷',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default LIST;
